module.exports = class BaseController {
  error (ctx, message, code) {
    ctx.body = {
      code,
      message
    }
    ctx.response.status = 400
  }
  success(ctx, message, code = 200) {
    ctx.body = {
      code ,
      message
    }
    ctx.response.status = 200
  }
}